import service from "@/utils/request";
//登录
export function login(payload = {}){
    return service.post('/admin/admin/login',payload)
}
//查看轮播图
export function bannerlist(payload = {}){
    return service.get('/admin/banner/list',{params:payload})
}
//删除单条轮播图
export function bannerdelete(payload = {}){
    return service.get('/admin/banner/delete',{params:payload})
}
//添加轮播图
export function banneradd(payload = {}){
    return service.post('/admin/banner/add',payload)
}
//轮播图状态
export function updateFlag(payload = {}){
    return service.post('/admin/banner/updateFlag',payload)
}
//管理员列表
export function adminlist(payload = {}){
    return service.get('/admin/admin/list',{params:payload})
}
//删除管理员
export function admindelete(payload = {}){
    return service.post('/admin/admin/delete',payload)
}
//添加管理员
export function adminadd(payload = {}){
    return service.post('/admin/admin/add',payload)
}
//修改管理员信息
export function adminupdate(payload = {}){
    return service.post('/admin/admin/update',payload)
}
//获取产品列表
export function prolist(payload = {}){
    return service.get('/admin/pro/list',{params:payload})
}
//秒杀列表
export function proshowdata(payload = {}){
    return service.post('/admin/pro/showdata',payload)
}
//获取商品分类
export function progetCategory(payload = {}){
    return service.get('/admin/pro/getCategory',{params:payload})
}
//筛选列表
export function prosearchPro(payload = {}){
    return service.post('/admin/pro/searchPro',payload)
}
//修改商品是否推荐或者秒杀
export function proupdateFlag(payload = {}){
    return service.post('/admin/pro/updateFlag',payload)
}
